package com.pshcp.domain.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 患者诊间费用支付记录表
 * </p>
 *
 * @author auto generator
 * @since 2023-02-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_patient_unpay_fee_record")
public class PatientUnpayFeeRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 患者APP账号ID
     */
    private Long patientUserId;
    /**
     * 就诊人ID
     */
    private Long patientId;

    /**
     * 就诊人HIS-ID
     */
    private String hisPatientId;

    /**
     * 未缴纳费用ID
     */
    private String unpayFeeId;

    /**
     * 总费用
     */
    private BigDecimal totalFee;
    /**
     * 支付状态 0未支付，1支付中，2支付完成，3支付失败，4退款中，5退款成功，6退款失败
     */
    private Integer payStatus;
    /**
     * 状态 0正常 1删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updateTime;


}
